#!/bin/bash
dd if=/dev/zero of=/tmp/test bs=256M count=1
mkfs.ext4 /tmp/test
sudo mkdir /mnt/test
sudo mount -t ext4 /tmp/test /mnt/test
sudo chown -R $USER:$USER /mnt/test
echo "创建临时文件系统成功，挂载点为 /mnt/test"